package com.zl.csMall.vo;

import lombok.Data;

/**
 * @description: ReturnModel
 * @author: XuJinPeng
 * @date 2023/6/6 16:58
 */
@Data
public class ReturnModel {

    // 是否请求成功
    private Boolean success;
    // 返回数据
    private Object data;
    // 异常信息
    private String err;


    public ReturnModel() {
        this.success = true;
    }

    public ReturnModel(Object data){
        this.success = true;
        this.data = data;
    }

    public ReturnModel(Boolean success, String err){
        this.success = success;
        this.err = err;
    }

    public ReturnModel(Boolean success, Object data, String err){
        this.success = success;
        this.data = data;
        this.err = err;
    }

}
